'use strict';
/**
 * Created by deng on 16-1-19.
 */
angular.module('metalabOperationApp').config(['$stateProvider', function ($stateProvider) {

    $stateProvider
        .state('meta.permission.system', {
            url: '/system',
            abstract: true,
            views: {
                'content': {
                    templateUrl: 'views/permission/common/content.html'
                }
            }
        }).state('meta.permission.system.announcement', {
        url: '/announcement',
        views: {
            'header@meta.permission.system': {
                templateUrl: 'views/permission/system/header.html',
                controller: 'HeaderCtrl'
            },
            'body@meta.permission.system': {
                templateUrl: 'views/permission/system/announcement.html',
                controller: 'AnnouncementCtrl'
            }
        }
    }).state('meta.permission.system.update', {
        url: '/update',
        views: {
            'header@meta.permission.system': {
                templateUrl: 'views/permission/system/header.html',
                controller: 'HeaderCtrl'
            },
            'body@meta.permission.system': {
                templateUrl: 'views/permission/system/update.html',
                controller: 'UpdateSystemCtrl'
            }
        }
    }).state('meta.permission.system.list', {
        url: '/list',
        views: {
            'header@meta.permission.system': {
                templateUrl: 'views/permission/system/header.html',
                controller: 'HeaderCtrl'
            },
            'body@meta.permission.system': {
                templateUrl: 'views/permission/system/list.html',
                controller: 'AccountListCtrl'
            }
        }
    });
}]);
